#!/usr/bin/env python
# -- coding: utf-8 --
# author：马海晨
# time:2025/4/26
# time:2025/4/24
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
import pytest

@pytest.fixture(scope="function", autouse=False)
def all_fixtures():
    driver = openweb()
    yield driver
def openweb():
        # 初始化浏览器,打开浏览器
        options = webdriver.EdgeOptions()
        options.add_experimental_option("detach", True)
        driver = webdriver.Edge(options=options)
        driver.get("http://43.143.145.37:10086/login")
        return driver